<template>
 <div class="app-container calendar-list-container">
  <el-tabs v-model="activeName" @tab-click="handleClick">
    <el-tab-pane label="响铃设置" name="first">
        <set-voice></set-voice>
    </el-tab-pane>
    <!-- <el-tab-pane label="付款方式" name="second">配置管理</el-tab-pane> -->
    <!-- <el-tab-pane label="角色管理" name="third">角色管理</el-tab-pane>
    <el-tab-pane label="定时任务补偿" name="fourth">定时任务补偿</el-tab-pane>  -->
  </el-tabs>  
 </div>
</template>

<script>
import setVoice from '../dashboard/setVoice'
export default {

  name: 'otherSetup',

  components: { setVoice },
  data() {
    return {
      activeName: 'first',
      postForm: {},
      rules: {
        unit_id: [
          { required: true, message: '营业点不能为空', trigger: 'blur' }
        ],
        address: [
          { required: true, message: '营业点地址不能为空', trigger: 'blur' },
          { min: 5, message: '长度在不能少于2个字', trigger: 'blur' }
        ],
        link_phone: [
          { required: true, message: '联系人号码不能为空', trigger: 'blur' },
          { pattern: /^1[3456789]\d{9}$/, message: '手机号格式错误' }
        ],
        link_name: [
          { required: true, message: '联系人名称不能为空', trigger: 'blur' },
          { min: 2, message: '长度在不能少于2个字', trigger: 'blur' }
        ]
      }
    }
  },

  methods: {
    handleClick(tab, event) {
      console.log(tab, event)
    }
  }
}
</script>
